Optimal. Leaf size=35 \[ \frac {3 \tanh ^{-1}(\sin (x))}{8 a^2}+\frac {\tan (x) \sec ^3(x)}{4 a^2}+\frac {3 \tan (x) \sec (x)}{8 a^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 35, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {3175, 3768, 3770} \[ \frac {3 \tanh ^{-1}(\sin (x))}{8 a^2}+\frac {\tan (x) \sec ^3(x)}{4 a^2}+\frac {3 \tan (x) \sec (x)}{8 a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3175
Rule 3768
Rule 3770
Rubi steps
\begin {align*} \int \frac {\sec (x)}{\left (a-a \sin ^2(x)\right )^2} \, dx &=\frac {\int \sec ^5(x) \, dx}{a^2}\\ &=\frac {\sec ^3(x) \tan (x)}{4 a^2}+\frac {3 \int \sec ^3(x) \, dx}{4 a^2}\\ &=\frac {3 \sec (x) \tan (x)}{8 a^2}+\frac {\sec ^3(x) \tan (x)}{4 a^2}+\frac {3 \int \sec (x) \, dx}{8 a^2}\\ &=\frac {3 \tanh ^{-1}(\sin (x))}{8 a^2}+\frac {3 \sec (x) \tan (x)}{8 a^2}+\frac {\sec ^3(x) \tan (x)}{4 a^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 61, normalized size = 1.74 \[ \frac {\frac {1}{2} (11 \sin (x)+3 \sin (3 x)) \sec ^4(x)-6 \log \left (\cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )\right )+6 \log \left (\sin \left (\frac {x}{2}\right )+\cos \left (\frac {x}{2}\right )\right )}{16 a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 46, normalized size = 1.31 \[ \frac {3 \, \cos \relax (x)^{4} \log \left (\sin \relax (x) + 1\right ) - 3 \, \cos \relax (x)^{4} \log \left (-\sin \relax (x) + 1\right ) + 2 \, {\left (3 \, \cos \relax (x)^{2} + 2\right )} \sin \relax (x)}{16 \, a^{2} \cos \relax (x)^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.14, size = 47, normalized size = 1.34 \[ \frac {3 \, \log \left (\sin \relax (x) + 1\right )}{16 \, a^{2}} - \frac {3 \, \log \left (-\sin \relax (x) + 1\right )}{16 \, a^{2}} - \frac {3 \, \sin \relax (x)^{3} - 5 \, \sin \relax (x)}{8 \, {\left (\sin \relax (x)^{2} - 1\right )}^{2} a^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.20, size = 66, normalized size = 1.89 \[ \frac {1}{16 a^{2} \left (-1+\sin \relax (x )\right )^{2}}-\frac {3}{16 a^{2} \left (-1+\sin \relax (x )\right )}-\frac {3 \ln \left (-1+\sin \relax (x )\right )}{16 a^{2}}-\frac {1}{16 a^{2} \left (1+\sin \relax (x )\right )^{2}}-\frac {3}{16 a^{2} \left (1+\sin \relax (x )\right )}+\frac {3 \ln \left (1+\sin \relax (x )\right )}{16 a^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.37, size = 57, normalized size = 1.63 \[ -\frac {3 \, \sin \relax (x)^{3} - 5 \, \sin \relax (x)}{8 \, {\left (a^{2} \sin \relax (x)^{4} - 2 \, a^{2} \sin \relax (x)^{2} + a^{2}\right )}} + \frac {3 \, \log \left (\sin \relax (x) + 1\right )}{16 \, a^{2}} - \frac {3 \, \log \left (\sin \relax (x) - 1\right )}{16 \, a^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 13.98, size = 31, normalized size = 0.89 \[ \frac {3\,\mathrm {atanh}\left (\sin \relax (x)\right )}{8\,a^2}+\frac {3\,\sin \relax (x)}{8\,a^2\,{\cos \relax (x)}^2}+\frac {\sin \relax (x)}{4\,a^2\,{\cos \relax (x)}^4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {\sec {\relax (x )}}{\sin ^{4}{\relax (x )} - 2 \sin ^{2}{\relax (x )} + 1}\, dx}{a^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________